<?php
/*
 * @Description: 接口返回json相关数据
 * @Author: cbj
 * @Date: 2021-11-22 09:34:05
 * @LastEditTime: 2021-11-23 16:30:22
 * @LastEditors:  
 */

namespace App\Exceptions;

use Throwable;

class ApiException extends \Exception
{
    // 
    public function __construct(array $message, $code = 0, Throwable $previous = null) {
    // public function __construct(array $apiErrConst, Throwable $previous= null)
    // {
        parent::__construct($message['message'],$message['status'],$previous);
    }
}
